Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add singularize/pluralize overload without using obsolete plurality enum #306

Merged
merged 5 commits into from
Jun 27, 2014

Conversation

mexx
Copy link
Collaborator

@mexx mexx commented Jun 24, 2014

related to #234

@mexx mexx changed the title add singularize/pluralize overlead without using obsolete plurality enum add singularize/pluralize overload without using obsolete plurality enum Jun 24, 2014
@MehdiK
Copy link
Member

MehdiK commented Jun 24, 2014

Thanks @mexx. Please flag the obsolete methods as Obsolete, update all the usages in Humanizer codebase and add this to readme as preferred API mentioning we will remove the old API in V2.

"Men".Singularize(Plurality.CouldBeEither) => "Man"
"Man".Singularize(Plurality.CouldBeEither) => "Man"
"strings".Singularize(Plurality.CouldBeEither) => "string"
"Men".Singularize(inputIsKnownToBePlural: false) => "Man"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a much better API. Thanks for the suggestion and for fixing it.

MehdiK added a commit that referenced this pull request Jun 27, 2014
…ality

add singularize/pluralize overload without using obsolete plurality enum
@MehdiK MehdiK merged commit 6808e22 into Humanizr:master Jun 27, 2014
@MehdiK
Copy link
Member

MehdiK commented Jun 27, 2014

Good PR @mexx. Thanks.

@MehdiK MehdiK mentioned this pull request Jun 27, 2014
@MehdiK
Copy link
Member

MehdiK commented Jul 7, 2014

This is now available on NuGet as v1.28.0. Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants